利用手機滑動切換顯示內容。
下面分享滑動切換內容效果運用
●html內容:

●利用JQuery Mobile swipe事件
$function(){
			$("#li2").bind("swipeleft",function(){
				$.mobile.changePage("#page2");
			});
			$("#li1").bind("swiperight",function(){
				$.mobile.changePage("#page1".transition:"slide",reverse:true},true,true);
			});
		});
默認的切換效果會從左往右,所以要加上reverse:true,這样就可以實現左右切換了
以上小小分享,有任何問題還請多多指教![]()
![]()
![]()